package com.bus.admin.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张子艺
 * @since 2020-04-01
 */
@TableName("orderbus")
@ApiModel(value="Orderbus对象", description="")
public class Orderbus extends Model<Orderbus> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "全款订单单号")
    @TableField("ordernum")
    private String ordernum;

    @ApiModelProperty(value = "定金单号")
    @TableField("dingjinNum")
    private String dingjinNum;

    @ApiModelProperty(value = "尾款单号")
    @TableField("weikuanNum")
    private String weikuanNum;

    @ApiModelProperty(value = "下单时间")
    @TableField("ordertime")
    private String ordertime;

    @ApiModelProperty(value = "姓名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "选择时间")
    @TableField("choosetime")
    private String choosetime;

    @ApiModelProperty(value = "上站地点")
    @TableField("stationup")
    private String stationup;

    @ApiModelProperty(value = "下站地点")
    @TableField("stationdown")
    private String stationdown;

    @ApiModelProperty(value = "人数")
    @TableField("peoplenumber")
    private String peoplenumber;

    @ApiModelProperty(value = "订单状态0-待确认 1-已确认待付款 2-进行中 3-已结束 ")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "用户id")
    @TableField("userid")
    private String userid;

    @ApiModelProperty(value = "备注")
    @TableField("beizhu")
    private String beizhu;

    @ApiModelProperty(value = "全款金额")
    @TableField("jine")
    private String jine;

    @ApiModelProperty(value = "尾款金额")
    @TableField("weikuan")
    private String weikuan;

    @ApiModelProperty(value = "定金金额")
    @TableField("dingjin")
    private String dingjin;

    @ApiModelProperty(value = "租车用途")
    @TableField("yongtu")
    private String yongtu;

    @ApiModelProperty(value = "已支付金额")
    @TableField("payMoney")
    private String payMoney;

    @ApiModelProperty(value = "支付状态0=未支付 1=仅支付定金 2=支付完毕(全款) ")
    @TableField("payStatus")
    private Integer payStatus;

    @ApiModelProperty(value = "定金支付时间")
    @TableField("paytime1")
    private String paytime1;

    @ApiModelProperty(value = "全款支付时间")
    @TableField("paytime2")
    private String paytime2;

    @ApiModelProperty(value = "尾款支付时间")
    @TableField("paytime3")
    private String paytime3;

    @ApiModelProperty(value = "支付类型 -1 没有支付 0定金+尾款支付 1全款直接支付")
    @TableField("payType")
    private Integer payType;
    @TableField(exist = false)
    private String ordertimeStatTime;
    @TableField(exist = false)
    private String ordertimeEndTime;

    public String getOrdertimeStatTime() {
        return ordertimeStatTime;
    }

    public void setOrdertimeStatTime(String ordertimeStatTime) {
        this.ordertimeStatTime = ordertimeStatTime;
    }

    public String getOrdertimeEndTime() {
        return ordertimeEndTime;
    }

    public void setOrdertimeEndTime(String ordertimeEndTime) {
        this.ordertimeEndTime = ordertimeEndTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }
    public String getDingjinNum() {
        return dingjinNum;
    }

    public void setDingjinNum(String dingjinNum) {
        this.dingjinNum = dingjinNum;
    }
    public String getWeikuanNum() {
        return weikuanNum;
    }

    public void setWeikuanNum(String weikuanNum) {
        this.weikuanNum = weikuanNum;
    }
    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getChoosetime() {
        return choosetime;
    }

    public void setChoosetime(String choosetime) {
        this.choosetime = choosetime;
    }
    public String getStationup() {
        return stationup;
    }

    public void setStationup(String stationup) {
        this.stationup = stationup;
    }
    public String getStationdown() {
        return stationdown;
    }

    public void setStationdown(String stationdown) {
        this.stationdown = stationdown;
    }
    public String getPeoplenumber() {
        return peoplenumber;
    }

    public void setPeoplenumber(String peoplenumber) {
        this.peoplenumber = peoplenumber;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }
    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }
    public String getJine() {
        return jine;
    }

    public void setJine(String jine) {
        this.jine = jine;
    }
    public String getWeikuan() {
        return weikuan;
    }

    public void setWeikuan(String weikuan) {
        this.weikuan = weikuan;
    }
    public String getDingjin() {
        return dingjin;
    }

    public void setDingjin(String dingjin) {
        this.dingjin = dingjin;
    }
    public String getYongtu() {
        return yongtu;
    }

    public void setYongtu(String yongtu) {
        this.yongtu = yongtu;
    }
    public String getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(String payMoney) {
        this.payMoney = payMoney;
    }
    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }
    public String getPaytime1() {
        return paytime1;
    }

    public void setPaytime1(String paytime1) {
        this.paytime1 = paytime1;
    }
    public String getPaytime2() {
        return paytime2;
    }

    public void setPaytime2(String paytime2) {
        this.paytime2 = paytime2;
    }
    public String getPaytime3() {
        return paytime3;
    }

    public void setPaytime3(String paytime3) {
        this.paytime3 = paytime3;
    }
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Orderbus{" +
            "id=" + id +
            ", ordernum=" + ordernum +
            ", dingjinNum=" + dingjinNum +
            ", weikuanNum=" + weikuanNum +
            ", ordertime=" + ordertime +
            ", username=" + username +
            ", phone=" + phone +
            ", choosetime=" + choosetime +
            ", stationup=" + stationup +
            ", stationdown=" + stationdown +
            ", peoplenumber=" + peoplenumber +
            ", status=" + status +
            ", userid=" + userid +
            ", beizhu=" + beizhu +
            ", jine=" + jine +
            ", weikuan=" + weikuan +
            ", dingjin=" + dingjin +
            ", yongtu=" + yongtu +
            ", payMoney=" + payMoney +
            ", payStatus=" + payStatus +
            ", paytime1=" + paytime1 +
            ", paytime2=" + paytime2 +
            ", paytime3=" + paytime3 +
            ", payType=" + payType +
        "}";
    }
}
